/*
  @author: 13813
  @date: 2024/11/6 13:50
*/
public class Arithmetic {
    public static void main(String[] args) {
        // 算数运算 + - * /  % ++ --
        int a = 1024;

        int b = a / 1000 * 1000;

//        System.out.println(b);

//        System.out.println(5%2);

        int c = 5;

        //++ 就是对变量做+1运算后再赋给变量
//        c++; //6

//        ++c; //7

//        int d = c++; // c = 6, d = 5

//        int d = ++c; // c = 6, d = 6

        int d = c++ + ++c + c;  // c = 7, d = 19
              // 5  +  7  + 7

        System.out.println("c = " + c);
        System.out.println("d = " + d);
    }
}
